/************************************************************************************
**                                                                                 **
**                               mcHF QRP Transceiver                              **
**                             K Atanassov - M0NKA 2014                            **
**                                                                                 **
**---------------------------------------------------------------------------------**
**                                                                                 **
**  File name:                                                                     **
**  Description:                                                                   **
**  Last Modified:                                                                 **
**  Licence:		For radio amateurs experimentation, non-commercial use only!   **
************************************************************************************/

#ifndef __IQ_RX_FILTER_AM_3k6_H
#define __IQ_RX_FILTER_AM_3k6_H

#define Q_BLOCK_SIZE		1
#define Q_NUM_TAPS			89

/*
 	 * 89 tap FIR lowpass filter for AM demodulation
     * 3.6 kHz lowpass
     * Fc = 3.41 kHz
     *
     * -6dB @ 3.61 kHz
     * -20dB @ 4.15 kHz
     * -40dB @ 4.52 kHz
     * -60dB > 4.73 kHz
     *
     * 20141205 by KA7OEI using Iowa Hills Hilbert Filter Designer
*/

const float iq_rx_am_3k6_coeffs[Q_NUM_TAPS] =
{
		 0.000194236006761998,
		 0.000282693396615949,
		 0.000320173787778202,
		 0.000266033714965954,
		 0.000094222201767759,
		-0.000191128727083006,
		-0.000544956187969324,
		-0.000880855390916938,
		-0.001084659388254350,
		-0.001042012424123070,
		-0.000675226060253367,
		 0.000019767665763547,
		 0.000948239863530163,
		 0.001914701347780859,
		 0.002651381830401708,
		 0.002876822184755611,
		 0.002374910694293840,
		 0.001076052561405293,
		-0.000882983411525426,
		-0.003143324896504320,
		-0.005167612397018260,
		-0.006344612664735190,
		-0.006139510014581940,
		-0.004258448206719960,
		-0.000785356097214045,
		 0.003751918439268481,
		 0.008418658238655563,
		 0.012024924259495225,
		 0.013375473421118661,
		 0.011573528596812616,
		 0.006312844603313269,
		-0.001915215334099090,
		-0.011763413332218100,
		-0.021156533713089800,
		-0.027603877979735700,
		-0.028651610038411300,
		-0.022392825182070700,
		-0.007931207001952560,
		 0.014305891795470664,
		 0.042485370371458303,
		 0.073554037962071023,
		 0.103673924978429130,
		 0.128835165244061745,
		 0.145533526176055278,
		 0.151381738212891748,
		 0.145533526176055278,
		 0.128835165244061745,
		 0.103673924978429130,
		 0.073554037962071023,
		 0.042485370371458303,
		 0.014305891795470664,
		-0.007931207001952560,
		-0.022392825182070700,
		-0.028651610038411300,
		-0.027603877979735700,
		-0.021156533713089800,
		-0.011763413332218100,
		-0.001915215334099090,
		 0.006312844603313269,
		 0.011573528596812616,
		 0.013375473421118661,
		 0.012024924259495225,
		 0.008418658238655563,
		 0.003751918439268481,
		-0.000785356097214045,
		-0.004258448206719960,
		-0.006139510014581940,
		-0.006344612664735190,
		-0.005167612397018260,
		-0.003143324896504320,
		-0.000882983411525426,
		 0.001076052561405293,
		 0.002374910694293840,
		 0.002876822184755611,
		 0.002651381830401708,
		 0.001914701347780859,
		 0.000948239863530163,
		 0.000019767665763547,
		-0.000675226060253367,
		-0.001042012424123070,
		-0.001084659388254350,
		-0.000880855390916938,
		-0.000544956187969324,
		-0.000191128727083006,
		 0.000094222201767759,
		 0.000266033714965954,
		 0.000320173787778202,
		 0.000282693396615949,
		 0.000194236006761998,
};

#endif
